import { defineEventHandler, setResponseHeader } from 'h3';

export default defineEventHandler((event) => {
	setResponseHeader(event, 'Access-Control-Allow-Origin', '*');
	setResponseHeader(event, 'Access-Control-Allow-Methods', 'GET,POST,PUT,PATCH,DELETE,OPTIONS');
	setResponseHeader(event, 'Access-Control-Allow-Headers', 'Content-Type, Authorization');
});
